clear all;

load('FigureOA57.mat')

fig=figure('color', [1 1 1 ], 'Position',[200 20 800 320]);
subplot(1,2,1)
bar(gridd1,f1,1,'facecolor','blue');
title('A. Num. of markets within a segment', 'FontSize',12,'Interpreter','Latex');
xlabel('num. of markets within a segment', 'FontSize',12,'Interpreter','Latex');
ylabel('num. of segments', 'FontSize',12,'Interpreter','Latex');
xticks(0:15:75);
set(gca,'FontSize',12);
subplot(1,2,2);
bar(gridd2,f2,1,'facecolor','blue');
hold on
title('B. Distance from nearest segment', 'FontSize',12,'Interpreter','Latex');
xlabel('distance from nearest segment', 'FontSize',12,'Interpreter','Latex');
ylabel('num. of segments', 'FontSize',12,'Interpreter','Latex');
xticks(25:10:85);
set(gca,'FontSize',12);
